package com.HomeWork12.work2;

public class Moster {
    String name;
    double blood;
    int MatkMax;
    int MatkMin;

    public Moster(String name, double blood, int matkMax, int matkMin) {
        this.name = name;
        this.blood = blood;
        MatkMax = matkMax;
        MatkMin = matkMin;
    }




    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Moster() {

    }

    public double getBlood() {
        return blood;
    }

    public void setBlood(double blood) {
        this.blood = blood;
    }

    public int getMatkMax() {
        return MatkMax;
    }

    public void setMatkMax(int matkMax) {
        MatkMax = matkMax;
    }

    public int getMatkMin() {
        return MatkMin;
    }

    public void setMatkMin(int matkMin) {
        MatkMin = matkMin;
    }


    public void attack(Player player){
//        Player player = new Player();
//        int attack2= (int)(Math.random()*(this.MatkMax-this.MatkMin));
//        System.out.println(this.);
//        int attack1 =  (int)(Math.random()*(this.atkmax-this.atkmin));
//        System.out.println(this.profession +"本次产生的伤害值为:"+attack1);
//        int DragonBlood =dragon.getBlood();
//        DragonBlood=DragonBlood-attack1;
//        System.out.println("龙的剩余血量："+DragonBlood);
//        dragon.setBlood(DragonBlood);

    }

    //int attack1 =  (int)(Math.random()*(this.atkmax-this.atkmin));
    //        System.out.println(this.profession +"本次产生的伤害值为:"+attack1);
//        int DragonBlood =dragon.getBlood();
//        DragonBlood=DragonBlood-attack1;
//        System.out.println("龙的剩余血量："+DragonBlood);
//        dragon.setBlood(DragonBlood);

}
